	<?php
	$url = @$_REQUEST['url'] ? $_REQUEST['url'] : '';
	$req = @$_REQUEST['request'] ? $_REQUEST['request'] : '';
	echo request_by_post($url,'request='.$req);

	function request_by_post($remote_server,$post_string)
	{
		$context = array(
			'http'=>array(
				'method'=>'POST',
				'header'=>'Content-type: application/x-www-form-urlencoded'."\r\n".
				'User-Agent : Firstboy\'s POST Example beta'."\r\n".
				'Content-length: '.strlen($post_string)+1,
				'content'=> $post_string)
		);
		$stream_context = stream_context_create($context);
		$data = file_get_contents($remote_server,FALSE,$stream_context);
		return $data;
	}

	?>